<template>
	<view class="scoring">
		<view class="Scrolling" v-for="i in 3" >
			<!-- 预订单图标 -->
			<view class="pre">预</view>
			<view class="new">
				<view>
					<view>#</view>
					<view>10</view>
					<view :style=" typeStatus == 1? {color:'#999999'}:''">[预] 13日 15:40 送达</view>
				</view>

				<view>已接单</view>
			</view>
			<view class="vImg"><image src="../../../static/home/xian.png" mode=""></image></view>

			<!-- 2 -->
			<view class="header">
				<view class="nav">
					<view>王**</view>
					<view>
						<image src="../../../static/home/dingwei.png" mode=""></image>
						<image src="../../../static/home/dianhua.png" mode=""></image>
					</view>
				</view>
				<!-- 超级会员 -->
				<view class="members">
					超级会员 · 近180天第5次下单 ·
					<text>用户上次评价</text>
				</view>

				<view class="Road">东平南路森林公园[10.31km]</view>
				<view class="divider"></view>
				<view class="Time">
					<view>备餐用时 29分16秒</view>

					<view style="background: none;width: 40%;color: #333333;">15点20分 已出餐</view>
				</view>
				<view class="divider"></view>
			</view>
			<view class="header_one">
				<view class="navHeader">
					<view class="merchants">13:52 待商家配送</view>
					<!-- 配送 -->
					<view class="Packone">
						<view @tap="Pack">
							<view>收起进度</view>
							<image src="../../../static/home/jiantou.png" mode=""></image>
						</view>

						<view>
							<view>查看路线</view>
							<view>确认送出</view>
						</view>
					</view>

					<!-- 配送收起进度 -->
					<view v-if="schedule" class="folding">
						<view>15:51</view>
						<view>待商家配送</view>
					</view>

					<view class="divider"></view>
					<!-- 1件商品 -->
					<view class="newgoods">
						<view>1件商品</view>
						<view v-if="Launched == 0" @tap="anTrue">展开</view>
						<view v-else @tap="anFalse">收起</view>
					</view>
					<view v-if="visFalse" class="meal">
						<view class="Shredded">
							<view>青椒肉丝-小份[中辣+青辣 椒]</view>
							<view>x 1</view>
							<view>0.01</view>
						</view>
						<view class="Shredded">
							<view>牛肉盖浇饭</view>
							<view>x 1</view>
							<view>0.01</view>
						</view>
						<view class="divider"></view>
						<!-- 其他 -->

						<view style="margin-top:48upx">其他</view>
						<view>
							<view>餐盒费</view>
							<view>0.10</view>
						</view>
						<view>
							<view>配送费</view>
							<view>0.10</view>
						</view>
						<view class="divider"></view>
						<view>优惠</view>
						<view>
							<view>折扣商品</view>
							<view>0.10</view>
						</view>
						<view>
							<view>专享红包</view>
							<view>0.10</view>
						</view>
						<view class="divider"></view>

						<!-- 顾客实付 -->
						<view>顾客实付 ￥0.11</view>
					</view>
					<!-- 本单预计收入 -->
					<view class="sheet">
						<view>本单预计收入</view>
						<image src="../../../static/home/yiwen.png" mode=""></image>
						<view>已支付</view>
						<view>￥0.10</view>
					</view>
					<view class="vImg"><image src="../../../static/home/xian.png" mode=""></image></view>
				</view>

				<!-- 订单号： -->

				<view class="order">
					<view>
						<view>订单号：</view>
						<view>202008111538</view>
						<view>下单时间：08-11 13:52</view>
					</view>
					<view></view>
					<view>
						<view style="margin-right: 30upx;">取消订单</view>

						<view>打印</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
export default {
	data() {
		return {
			visFalse: false,
			Launched: 0,
			schedule: false, //配送收起进度
			typeStatus:1
		};
	},

    onPullDownRefresh() {
            console.log('refresh');
            setTimeout(function () {
                uni.stopPullDownRefresh();
            }, 3000);
        },
	methods: {
		anTrue() {
			this.visFalse = true;
			this.Launched = 1;
		},
		anFalse() {  
			this.visFalse = false;
			this.Launched = 0;
		},
		// 收起进度
		Pack() {
			this.schedule = !this.schedule;
		}
	}
};
</script>
<style lang="scss" scoped>
.scoring {
	overflow-y: auto;
}
.Scrolling {
	position: relative;
	left: 0;
	right: 0;
	top: 0upx;
	margin: 30upx auto;
	background: $bg1-color;

	box-shadow: 0upx 0upx 15upx 1upx rgba(102, 102, 102, 0.16);
	.pre {
		background: url('../../../static/home/type1.png') no-repeat;
		background-size: 100%100%;
		position: absolute;
		left: 7upx;
		top: 7upx;
		font-size: 26upx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: $bg1-color;
		width: 69upx;
		height: 69upx;
		display: flex;
		
	}
	.new {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: $bg1-color;
		.red{
			color: red!important;
		}
		& > view:nth-child(1) {
			display: flex;
			align-items: center;
			margin-top: 49upx;
			& > view:nth-child(1) {
				font-size: 26upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
				margin-left: 46upx;
			}
			& > view:nth-child(2) {
				font-size: 56upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
				margin-left: 12upx;
			}
			& > view:nth-child(3) {
				font-size: 30upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg4-color;
				margin-left: 27upx;
			}
		}
		& > view:nth-child(2) {
			font-size: 30upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg2-color;
			margin-top: 57upx;
			margin-right: 30upx;
		}
	}
	.vImg {
		background: $bg1-color;
		image {
			width: 100%;
			height: 6upx;
		}
	}
	// 倒计时
	.countdown {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 40upx;
		margin-top: 35upx;
		& > view:nth-child(1) {
			font-size: 28upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg-color;
		}
		& > view:nth-child(2) {
			width: 125upx;
			height: 42upx;
			background: $bg-background;
			border-radius: 21upx;
			font-size: 30upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg1-color;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.header {
		padding: 98upx 46upx 0upx 43upx;
		// padding-bottom: 47upx;
		background: $bg1-color;
		.nav {
			width: 100%;

			display: flex;
			align-items: center;
			justify-content: space-between;
			& > view:nth-child(1) {
				font-size: 35upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
			}
			& > view:nth-child(2) {
				display: flex;
				align-items: center;
				& > image:nth-child(1) {
					width: 30upx;
					height: 33upx;
					margin-right: 40upx;
				}
				& > image:nth-child(2) {
					width: 33upx;
					height: 33upx;
				}
			}
		}
		// 超级会员
		.members {
			font-size: 26upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg5-color;
			margin-top: 48upx;
			text {
				color: $bg-color;
			}
		}
		.Road {
			font-size: 26upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: $bg6-color;
			margin-top: 23upx;
		}
		.divider {
			width: 100%;
			height: 1upx;
			background: $bg1-background;
			margin-top: 47upx;
		}
		.Time {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 48upx;
			& > view:nth-child(1) {
				font-size: 36upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
			}
			& > view:nth-child(2) {
				font-size: 28upx;
				width: 180upx;
				height: 60upx;
				background: $bg-background;
				border-radius: 30upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				display: flex;
				align-items: center;
				justify-content: center;
				color: $bg1-color;
			}
		}
	}

	.header_one {
		background: $bg1-color;
		padding-bottom: 47upx;
		.judgmen {
			background: $bg8-background;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 47upx 46upx 47upx 43upx;
			& > view:nth-child(1) {
				font-size: 36upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg2-color;
			}
			& > view:nth-child(2) {
				width: 180upx;
				height: 60upx;
				background: $bg-background;
				border-radius: 30upx;
				font-size: 28upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg1-color;
				display: flex;
				align-items: center;
				justify-content: center;
			}
		}

		.navHeader {
			padding: 0upx 46upx 0upx 43upx;
			.merchants {
				font-size: 36upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg6-color;
				margin-top: 48upx;
			}
			.Packone {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 39upx;

				& > view:nth-child(1) {
					display: flex;
					align-items: center;
					& > view:nth-child(1) {
						font-size: 28upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg-background;
					}
					image {
						width: 22upx;
						height: 23upx;
						margin-left: 11upx;
					}
				}
				&>view:nth-child(2){
					display: flex;
					align-items: center;
					& > view:nth-child(1) {
						width: 180upx;
						height: 60upx;
						border: 2upx solid $bg4-color;
						border-radius: 30upx;
						font-size: 28upx;
						font-family: Source Han Sans CN;
						font-weight: 500;
						color: $bg-background;
						display: flex;
						align-items: center;
						justify-content: center;
						margin-right: 11upx;
					}
					& > view:nth-child(2) {
						width: 180upx;
						height: 60upx;
						background: $bg4-color;
						display: flex;
						align-items: center;
						justify-content: center;
						border-radius: 30upx;
						color: $bg1-color;
						font-size: 28upx;
						font-family: Source Han Sans CN;
						font-weight: 500;
					}
				}
				
			}
			// 进度
			.folding {
				display: flex;
				align-items: center;
				padding-top: 51upx;
				& > view:nth-child(1) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
				}
				& > view:nth-child(2) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
					margin-left: 46upx;
				}
			}
			.newgoods {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 48upx;
				& > view:nth-child(1) {
					font-size: 34upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg2-color;
				}
				& > view:nth-child(2) {
					width: 126upx;
					height: 52upx;
					background: $bg2-background;
					border-radius: 26upx;
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg4-color;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
			.meal {
				.Shredded {
					display: flex;
					margin-top: 48upx;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
						flex: 4;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: bold;
						color: $bg6-color;
						flex: 2;
					}
					& > view:nth-child(3) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
						flex: 1;
						text-align: right;
					}
				}
				& > view:nth-child(4) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
				}
				& > view:nth-child(5) {
					margin-top: 33upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(6) {
					margin-top: 40upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(8) {
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
					margin-top: 48upx;
				}
				& > view:nth-child(9) {
					margin-top: 33upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(10) {
					margin-top: 40upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					& > view:nth-child(1) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg6-color;
					}
					& > view:nth-child(2) {
						font-size: 30upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: $bg2-color;
					}
				}
				& > view:nth-child(12) {
					font-size: 32upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg2-color;
					margin-top: 48upx;
					text-align: right;
				}
			}

			.sheet {
				display: flex;
				align-items: center;
				text-align: right;
				justify-content: flex-end;
				margin-top: 40upx;

				& > view:nth-child(1) {
					font-size: 30upx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					color: $bg2-color;
				}
				image {
					width: 30upx;
					height: 30upx;
					margin-left: 15upx;
				}
				& > view:nth-child(3) {
					// width:70upx;
					height: 30upx;
					background: $bg3-background;
					font-size: 22upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg1-color;
					margin-left: 46upx;
				}
				& > view:nth-child(4) {
					font-size: 30upx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					color: $bg-color;
					margin-left: 24upx;
				}
			}
			.vImg {
				image {
					width: 100%;
					height: 6upx;
				}
			}
		}

		// 拒绝退款
		.Refused {
			background: $bg11-background;
			padding: 50upx 46upx 40upx 46upx;
			& > view:nth-child(1) {
				font-size: 36upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg3-color;
				& > text {
					color: $bg2-color;
				}
			}
			& > view:nth-child(2) {
				font-size: 28upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg5-color;
				margin-top: 23upx;
				margin-left: 90upx;
			}
			& > view:nth-child(3) {
				display: flex;
				align-items: center;
				justify-content: flex-end;
				margin-top: 40upx;
				& > view:nth-child(1) {
					width: 180upx;
					height: 60upx;
					border: 2upx solid $bg-background;
					border-radius: 30upx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: $bg-background;
					margin-right: 11upx;
				}
				& > view:nth-child(2) {
					width: 180upx;
					height: 60upx;
					background: $bg-background;
					border-radius: 30upx;
					display: flex;
					align-items: center;
					justify-content: center;
					color: $bg1-color;
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 500;
				}
			}
			& > view:nth-child(4) {
				font-size: 24upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg5-color;
				text-align: right;
				margin-top: 24upx;
				& > text {
					color: $bg7-color;
				}
			}
		}
		.order {
			display: flex;
			align-items: center;
			margin-top: 47upx;
			padding: 0 40upx;
			& > view:nth-child(1) {
				font-size: 24upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: $bg5-color;
				flex: 1;
			}
			& > view:nth-child(2) {
				height: 97upx;
				width: 1upx;
				background: $bg4-background;
				border-radius: 1upx;
				margin-right: 60upx;
			}
			& > view:nth-child(3) {
				display: flex;
				align-items: center;
				& > view {
					font-size: 32upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: $bg5-color;
				}
			}
		}
	}

	/deep/.u-drawer-bottom {
		bottom: 0;
		left: 0;
		right: 0;
		background-color: #ffffff;
		background: none !important;
	}
	.Foodsold {
		padding-bottom: 20upx;
		& > view:nth-child(1) {
			width: 93%;
			background: $bg1-color;
			border-radius: 10upx;
			margin: 0 auto;
			& > view {
				font-size: 34upx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: rgba(51, 51, 51, 1);
				border-bottom: 1upx solid #edf0fa;
				padding-top: 31upx;
				padding-bottom: 31upx;
				text-align: center;
			}
		}
		& > view:nth-child(2) {
			width: 93%;
			background: $bg1-color;
			border-radius: 10upx;
			margin: 26upx auto;

			font-size: 34upx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: rgba(51, 51, 51, 1);
			padding-top: 30upx;
			padding-bottom: 30upx;
			text-align: center;
		}
	}
}
</style>
